fix: add missing device types, fix Hub Mini alias, fix credential cache - #71
Merged
Conversation
added 6 commits
July 27, 2026 20:44
…est list (#70) Renames the 'Hub Mini2' alias to the official marketing name 'Hub Mini Matter Enabled', and registers the 9 new catalog entries from the prior commit in OFFICIAL_API_DEVICE_TYPES.
- Smart Lock Pro Wifi: add missing nightLatchUnlock, deadbolt commands - Lock Vision / Lock Vision Pro: add missing createKey command - WeatherStation: alias 'Weather Station' display name - Battery Circulator Fan 2 Pro, AI MindClip: drop undocumented statusFields - RGBICWW Ceiling Light: add exampleParams to setColorLightRGB - Backfill OFFICIAL_SUPPORTED_DEVICE_LIST_NAMES with the 9 new device names - Add regression test for #69 (saveConfig clears stale primed credentials)
Resolve device-catalog conflicts with PR #47 (Weather Station, Lock Vision, Lock Vision Pro, Smart Lock Pro Wifi) by verifying against upstream SwitchBotAPI docs — PR #47's data was factually wrong in several places (fabricated atmosphericPressure field, missing createKey/deleteKey commands, Smart Lock Pro Wifi wrongly aliased instead of its own Matter entry). Re-wire saveConfig() to main's newer multi-profile clearPrimedCredentials() API to keep the #69 fix.
- Add missing exampleParams for WeatherStation/Kata Friends so suggestedActions() emits runnable commands - Add onlineStatus to Permanent Outdoor Lights / RGBICWW Ceiling Light statusFields - Wire Permanent Outdoor Lights into brightness/color/color-temp validation - Add dedicated validation for Battery Circulator Fan 2 Pro enums - Reuse Keypad passcode validation for Lock Vision / Lock Vision Pro - Fix stale comment on __resetPrimedCredentials
Collaborator
Author
|
Addressed the second review pass in a68970d:
Added unit tests in |
This was referenced Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hub Mini2alias corrected toHub Mini Matter EnabledsaveConfig()Test plan
npx vitest run— 2392/2392 passingnpm run typecheck— clean